<template>
	<view v-if="state">
		<view class="">弹出框样式sync</view>
		<view class="box" :style="{height: state ? '300rpx': '0rpx'}"></view>
		<button size="mini" @click="onclick">关闭popsync</button>
	</view>
</template>

<script>
	export default {
		name:"mypopsync",
		data() {
			return {
				
			};
		},
		props: {
			state: {
				type:Boolean,
				default: false
			}
		},
		emits:['update:state'],
		methods: {
			onclick() {
				console.log("myoponsync click");
				this.$emit("update:state", false);
			}
		}
	}
</script>

<style>
.box {
	width: 300rpx;
	height: 300rpx;
	background: red;
}
</style>